{{#basicAuthorization}}
/// {{classnamePascalCase}} APIs - Authorization.
#[async_trait]
#[allow(clippy::ptr_arg)]
pub trait {{classnamePascalCase}}Authorization {
    type Claims;

{{#operation}}
  {{#vendorExtensions}}
  {{#x-has-auth-methods}}
  {{#basicAuthorization}}
   {{#vendorExtensions}}
    /// Authorization{{#summary}} - {{{.}}}{{/summary}}.
    /// {{{operationId}}} - {{{httpMethod}}} {{{basePathWithoutHost}}}{{{path}}}
    async fn {{{x-operation-id}}}_authorize(
        &self,
        method: &Method,
        host: &Host,
        cookies: &CookieJar,
        claims: &Self::Claims,
        {{#headerParams.size}}
          header_params: &models::{{{operationIdCamelCase}}}HeaderParams,
        {{/headerParams.size}}
        {{#pathParams.size}}
          path_params: &models::{{{operationIdCamelCase}}}PathParams,
        {{/pathParams.size}}
        {{#queryParams.size}}
          query_params: &models::{{{operationIdCamelCase}}}QueryParams,
        {{/queryParams.size}}
        {{^x-consumes-multipart-related}}
        {{^x-consumes-multipart}}
          {{#bodyParam}}
          {{#vendorExtensions}}
            {{^x-consumes-plain-text}}
                body: &{{^required}}Option<{{/required}}{{{dataType}}}{{^required}}>{{/required}},
            {{/x-consumes-plain-text}}
            {{#x-consumes-plain-text}}
              {{#isString}}
                body: &String,
              {{/isString}}
              {{^isString}}
                body: &Bytes,
              {{/isString}}
            {{/x-consumes-plain-text}}
          {{/vendorExtensions}}
          {{/bodyParam}}
        {{/x-consumes-multipart}}
        {{/x-consumes-multipart-related}}
        {{#x-consumes-multipart}}
            body: &Multipart,
        {{/x-consumes-multipart}}
        {{#x-consumes-multipart-related}}
            body: &axum::body::Body,
        {{/x-consumes-multipart-related}}
        ) -> Result<super::Authorization, ()> {
             Ok(super::Authorization::Authorized)
        }
   {{/vendorExtensions}}
  {{/basicAuthorization}}
  {{/x-has-auth-methods}}
  {{/vendorExtensions}}
  {{^-last}}

  {{/-last}}
{{/operation}}
}
{{/basicAuthorization}}